home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / pcpatch.zip / README < prev   
Text File  |  1988-02-05  |  2KB  |  35 lines

  1.    This .arc file contains MS-DOS executables for three programs which
  2. are very useful for handling updates and patches of programs. These
  3. programs are non-proprietary clones of utilities found on most Unix systems.
  4.  
  5.    Diff is a program that compares two files, and gives a summary of
  6. differences to the standard output. What you see posted to the net as
  7. patches is usually this output.
  8.  
  9.    Patch is a program which does the converse of the diff program; that
  10. is, it takes output from diff, and converts the older file given as
  11. diff input into the newer file that was given to diff.
  12.  
  13.    Ed is similar to the Unix ed. It is necessary for ed to be available
  14. when running patch, as patch calls the ed program.
  15.  
  16.    Each of these programs was posted to Usenet as source code. I compiled
  17. diff with no modifications. Ed was posted as minix source code, and I
  18. was able to port it with only a few changes. Patch was a more substantial
  19. port, as I had to rewrite some of the logic. Now instead of piping output
  20. (for ed commands) directly to ed, I have it so that it buffers it into a
  21. file. When all the patch commands are figured out, it does a call to
  22. system("ed %s < patch.tmp"). I have tested patch on a few context diffs,
  23. but not having had to use (and become familiar with) many options on this
  24. command, I wasn't able to thoroughly test the options. My advice is to check
  25. your files after patching. Running the old and patched files through diff
  26. is a good way to check. Please let me know if you find any bugs. Another
  27. change to patch is that instead of renaming the original file from file.ext
  28. to file.ext.orig, it renames it to o_file.ext to be compatible with DOS.
  29. Similarly, unresolved patch blocks are put into a file beginning with r_.
  30. Finally, I added a function mv to rename a file, since DOS doesn't have
  31. the link function that Unix patch uses.
  32.  
  33. --Steve Creps,    creps@silver.bacs.indiana.edu, ...!iuvax!silver!creps,
  34.         creps@iubacs.bitnet
  35.